package com.ruoyi.supervise.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.supervise.domain.MainComplete;
import com.ruoyi.supervise.domain.MainLeft;
import com.ruoyi.supervise.domain.Mybigdata;
import com.ruoyi.supervise.domain.PieChart;
import com.ruoyi.supervise.mapper.IndexMainMapper;
import com.ruoyi.supervise.service.IIndexMainService;


/**
 * @ClassName: IndexMainServiceImpl
 * @Description: 首页impl
 * @Author wtj
 * @DateTime 2020年5月15日 上午9:37:02
 */
@Service
@DataSource(value = DataSourceType.SLAVE)
public class IndexMainServiceImpl implements IIndexMainService 
{
    @Autowired
    private IndexMainMapper indexMainMapper;

	@Override
	public String countConsturctionTotal(Mybigdata mbd) {
		// TODO Auto-generated method stub
		return indexMainMapper.countConsturctionTotal(mbd);
	}

	@Override
	public String sumConsturctionDevelopmentScope(Mybigdata mbd) {
		// TODO Auto-generated method stub
		return indexMainMapper.sumConsturctionDevelopmentScope(mbd);
	}

	@Override
	public String sumConsturctionCompactPrice(Mybigdata mbd) {
		// TODO Auto-generated method stub
		return indexMainMapper.sumConsturctionCompactPrice(mbd);
	}

	@Override
	public List<PieChart> selectNumGroupByProjectType(Mybigdata mbd) {
		// TODO Auto-generated method stub
		return indexMainMapper.selectNumGroupByProjectType(mbd);
	}

	@Override
	public List<PieChart> selectConsturctionNumGroupByMonth(Mybigdata mbd) {
		// TODO Auto-generated method stub
		return indexMainMapper.selectConsturctionNumGroupByMonth(mbd);
	}

	@Override
	public String countCompleteTotal(MainComplete mc) {
		// TODO Auto-generated method stub
		return indexMainMapper.countCompleteTotal(mc);
	}

	@Override
	public String sumCompleteDevelopmentScope(MainComplete mc) {
		// TODO Auto-generated method stub
		return indexMainMapper.sumCompleteDevelopmentScope(mc);
	}

	@Override
	public String sumCompleteCompactPrice(MainComplete mc) {
		// TODO Auto-generated method stub
		return indexMainMapper.sumCompleteCompactPrice(mc);
	}

	@Override
	public List<PieChart> selectCompleteNumGroupByEngineeringCategory(MainComplete mc) {
		// TODO Auto-generated method stub
		return indexMainMapper.selectCompleteNumGroupByEngineeringCategory(mc);
	}

	@Override
	public List<PieChart> selectCompleteNumGroupByMonth(MainComplete mc) {
		// TODO Auto-generated method stub
		return indexMainMapper.selectCompleteNumGroupByMonth(mc);
	}

	@Override
	public List<MainLeft> mainLeft() {
		// TODO Auto-generated method stub
		return indexMainMapper.selectCompUnionAllConsTopFive();
	}
	
}
